<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<raya.Models.people.Profile>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Your Settings</h2>
    <%if (ViewData.Model.person.loginInfo.fbuid != null)
      {%>
    <div class="sideBar">
        <div class="sidebox">
            <div class="gadgets-gadget-title-bar">
                Facebook Connect</div>
            <%
                if (Session["fbuid"] != null)
                {
                    if ((long)Session["fbuid"] == 0)
                    {%>
            <p>
                Connect raya with your Facebook account to share your information and see which
                of your friends are here.</p>
            <p class="ac">
                <fb:login-button length="short" background="light" size="medium" onlogin="facebook_onlogin_ready();">
                </fb:login-button>
            </p>
            <%
                }
                    else
                    {
                        if (ViewData.Model.unconnectedFBFriendsCount != 0)
                        {
                            string inviteLink =
                                "<a href=\"#\" onclick=\"FB.Connect.inviteConnectUsers(); return false;\"> Unconnected friends</a>";
            %>
            <p>
                <%=ViewData.Model.unconnectedFBFriendsCount + " " + inviteLink%>
            </p>
            <%
                }%>
            <p>
                <img src="http://static.ak.fbcdn.net/images/icons/favicon.gif" alt="fb" />
                <a href="#" onclick="fb_disconnect();">Disconnect from Facebook</a></p>
            <%
                }
                }%>
        </div>
    </div>
    <%
        }%>
    <%if (!string.IsNullOrEmpty(ViewData.Model.person.loginInfo.gfcUid))
      {%>
    <div class="sideBar">
        <div class="sidebox">
            <div class="gadgets-gadget-title-bar">
                Google Friend Connect</div>
            <div>
                <a href="#" onclick="google.friendconnect.requestSettings();">Settings</a>
            </div>
            <div>
                <a href="#" onclick="google.friendconnect.requestInvite();">Invite</a>
            </div>
        </div>
    </div>
    <%
        }%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
